# It is common to assemble module names into variables, make it easier to move
$modulePath="C:\code\LearningPowerShell\Grammars\Modules1\"
$moduleName="Simple-module"

$module="$($modulePath)$($moduleName).psm1"

# To use a module, you first need to import it
Import-Module $module

#Get-Module

Write-One
Write-Two

# Note variables in the module won't appear here
$scopedToModuleOnly


# They are scoped to the module
$Global:scopedGlobal

Get-ITM

Write-ITM 'Arcane Code'
Get-ITM

# Note the variable isn't available outside the module
$Script:scopedToScript

#Remove-Module $moduleName

